package com.qaml.mes.device.vo.dayoff;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.qaml.mes.device.utils.Long2StringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class DayOffRespVO {


    @ApiModelProperty(value = "ID 更新时传递")
    @JsonSerialize(using = Long2StringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "假期类型 1_周末 2_法定节假日 3_其他")
    private Integer dayOffType;

    @ApiModelProperty(value = "假期类型 1_周末 2_法定节假日 3_其他")
    private String dayOffTypeDesc;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    /**
     * 检保结束时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间")
    private Date endTime;


    @ApiModelProperty(value = "备注")
    private String remark;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建人名称")
    private String createUserName;
}
